<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <input type="hidden" id="c-moduleid" name="row[moduleid]" value="{$row.moduleid}" />
<div class="form-group">
<label for="c-columnname" class="control-label col-xs-12 col-sm-2">列名:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-columnname" data-rule="required" class="form-control" name="row[columnname]" type="text" value="{$row.columnname}" />
</div>
</div>
<div class="form-group">
<label for="c-columnenname" class="control-label col-xs-12 col-sm-2">列名(英文):</label>
<div class="col-xs-12 col-sm-8">
<input id="c-columnenname" data-rule="required" class="form-control" name="row[columnenname]" type="text" value="{$row.columnenname}" />
</div>
</div>
<div class="form-group">
<label for="c-columntype" class="control-label col-xs-12 col-sm-2">列的类型:</label>
<div class="col-xs-12 col-sm-8">
<select id="c-columntype" data-rule="required" name="row[columntype]"  class="form-control selectpicker">
<option value="0">请选择</option>
<option value="varcharlong" {if $row.columntype eq 'varcharlong'}selected="selected"{/if}>varchar(1000)</option>
<option value="varcharmid" {if $row.columntype eq 'varcharmid'}selected="selected"{/if}>varchar(400)</option>
<option value="varcharshort" {if $row.columntype eq 'varcharshort'}selected="selected"{/if}>Varchar(100)</option>
<option value="identity" {if $row.columntype eq 'identity'}selected="selected"{/if}>自动增长</option>
<option value="guid" {if $row.columntype eq 'guid'}selected="selected"{/if}>guid</option>
<option value="int" {if $row.columntype eq 'int'}selected="selected"{/if}>int(10)</option>
<option value="bigint" {if $row.columntype eq 'bigint'}selected="selected"{/if}>bigint(20)</option>
<option value="smallint" {if $row.columntype eq 'smallint'}selected="selected"{/if}>smallint(4)</option>
<option value="bool" {if $row.columntype eq 'bool'}selected="selected"{/if}>tinyint(1)</option>
<option value="float" {if $row.columntype eq 'float'}selected="selected"{/if}>float(4,2)</option>
<option value="decimal" {if $row.columntype eq 'decimal'}selected="selected"{/if}>decimal(4,2)</option>
<option value="double" {if $row.columntype eq 'double'}selected="selected"{/if}>double(18,2)</option>
<option value="image" {if $row.columntype eq 'image'}selected="selected"{/if}>image</option>
<option value="file" {if $row.columntype eq 'file'}selected="selected"{/if}>file</option>
<option value="text" {if $row.columntype eq 'text'}selected="selected"{/if}>text</option>
<option value="enum" {if $row.columntype eq 'enum'}selected="selected"{/if}>enum</option>
</select>
</div>
</div>
<div class="form-group">
<label for="c-columncheck" class="control-label col-xs-12 col-sm-2">验证方式:</label>
<div class="col-xs-12 col-sm-8">
<select id="c-columncheck" data-rule="required" name="row[columncheck]"  class="form-control selectpicker">
<option value="0">请选择</option><option value="required" {if $row.columncheck eq 'required'}selected="selected"{/if}>必须填写</option>
<option value="length(8~16)" {if $row.columncheck eq 'length(8~16)'}selected="selected"{/if}>长度在8—16之间</option>
<option value="digits" {if $row.columncheck eq 'digits'}selected="selected"{/if}>数字</option>
<option value="letters" {if $row.columncheck eq 'letters'}selected="selected"{/if}>字母</option>
<option value="date" {if $row.columncheck eq 'date'}selected="selected"{/if}>日期格式yyyy-mm-dd</option>
<option value="email" {if $row.columncheck eq 'email'}selected="selected"{/if}>Email</option>
<option value="time" {if $row.columncheck eq 'time'}selected="selected"{/if}>时间</option>
<option value="url" {if $row.columncheck eq 'url'}selected="selected"{/if}>网址</option>
<option value="qq" {if $row.columncheck eq 'qq'}selected="selected"{/if}>QQ</option>
<option value="IDcard" {if $row.columncheck eq 'IDcard'}selected="selected"{/if}>身份证号</option>
<option value="tel" {if $row.columncheck eq 'tel'}selected="selected"{/if}>电话号码</option>
<option value="mobile" {if $row.columncheck eq 'mobile'}selected="selected"{/if}>手机号</option>
<option value="zipcode" {if $row.columncheck eq 'zipcode'}selected="selected"{/if}>邮编</option>
<option value="chinese" {if $row.columncheck eq 'chinese'}selected="selected"{/if}>中文</option>
<option value="username" {if $row.columncheck eq 'username'}selected="selected"{/if}>用户名3-12位数字、字母、下划线</option>
<option value="password" {if $row.columncheck eq 'password'}selected="selected"{/if}>密码6-16位字符，不能包含空格</option>
<option value="integer" {if $row.columncheck eq 'integer'}selected="selected"{/if}>整数</option>
<option value="integer(+)" {if $row.columncheck eq 'integer(+)'}selected="selected"{/if}>正整数</option>
<option value="integer(-)" {if $row.columncheck eq 'integer(-)'}selected="selected"{/if}>负整数</option>
</select>
</div>
</div>
<div class="form-group">
<label for="c-cname" class="control-label col-xs-12 col-sm-2">模型名称:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-cname" data-rule="required" class="form-control" name="row[cname]" type="text" value="{$row.cname}" />
</div>
</div>
<div class="form-group">
<label for="c-rname" class="control-label col-xs-12 col-sm-2">关联模型名称:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-rname" data-rule="" class="form-control" name="row[rname]" type="text" value="{$row.rname}" />
</div>
</div>
<div class="form-group">
<label for="c-relate" class="control-label col-xs-12 col-sm-2">关系类型:</label>
<div class="col-xs-12 col-sm-8">
<select id="c-relate" data-rule="required" name="row[relate]"  class="form-control selectpicker">
<option value="0">请选择</option><option value="1" {if $row.relate eq '1'}selected="selected"{/if}>一对一</option>
<option value="2" {if $row.relate eq '2'}selected="selected"{/if}>多对一</option>
<option value="3" {if $row.relate eq '3'}selected="selected"{/if}>多对多</option>
<option value="4" {if $row.relate eq '4'}selected="selected"{/if}>一对多</option>
</select>
</div>
</div>

<div class="form-group">
<label for="c-isintable" class="control-label col-xs-12 col-sm-2">是否是表字段:</label>
<div class="col-xs-12 col-sm-8">
<div class="radio" >
<label for="isintable"><input name="row[isintable]" type="radio" value="1" {if $row.isintable eq '1'}checked="checked"{/if} /> 是</label>
<label for="isintable"><input name="row[isintable]" type="radio" value="0" {if $row.isintable eq '0'}checked="checked"{/if} /> 否</label>
</div>
</div>
</div>
<div class="form-group">
<label for="c-isshowlist" class="control-label col-xs-12 col-sm-2">是否在列表显示:</label>
<div class="col-xs-12 col-sm-8">
<div class="radio" >
<label for="isshowlist"><input name="row[isshowlist]" type="radio" value="1" {if $row.isshowlist eq '1'}checked="checked"{/if} /> 是</label>
<label for="isshowlist"><input name="row[isshowlist]" type="radio" value="0" {if $row.isshowlist eq '0'}checked="checked"{/if} /> 否</label>
</div>
</div>
</div>
<div class="form-group">
<label for="c-isshowadd" class="control-label col-xs-12 col-sm-2">在添加界面是否显示:</label>
<div class="col-xs-12 col-sm-8">
<div class="radio" >
<label for="isshowadd"><input name="row[isshowadd]" type="radio" value="1" {if $row.isshowadd eq '1'}checked="checked"{/if} /> 是</label>
<label for="isshowadd"><input name="row[isshowadd]" type="radio" value="0" {if $row.isshowadd eq '0'}checked="checked"{/if} /> 否</label>
</div>
</div>
</div>
<div class="form-group">
<label for="c-isshowedit" class="control-label col-xs-12 col-sm-2">编辑界面是否显示:</label>
<div class="col-xs-12 col-sm-8">
<div class="radio" >
<label for="isshowedit"><input name="row[isshowedit]" type="radio" value="1" {if $row.isshowedit eq '1'}checked="checked"{/if} /> 是</label>
<label for="isshowedit"><input name="row[isshowedit]" type="radio" value="0" {if $row.isshowedit eq '0'}checked="checked"{/if} /> 否</label>
</div>
</div>
</div>
<div class="form-group">
<label for="c-isshowwindow" class="control-label col-xs-12 col-sm-2">弹出窗口是否显示:</label>
<div class="col-xs-12 col-sm-8">
<div class="radio" >
<label for="isshowwindow"><input name="row[isshowwindow]" type="radio" value="1" {if $row.isshowwindow eq '1'}checked="checked"{/if} /> 是</label>
<label for="isshowwindow"><input name="row[isshowwindow]" type="radio" value="0" {if $row.isshowwindow eq '0'}checked="checked"{/if} /> 否</label>
</div>
</div>
</div>
<div class="form-group">
<label for="c-isshowsearch" class="control-label col-xs-12 col-sm-2">搜索的时候是否显示:</label>
<div class="col-xs-12 col-sm-8">
<div class="radio" >
<label for="isshowsearch"><input name="row[isshowsearch]" type="radio" value="1" {if $row.isshowsearch eq '1'}checked="checked"{/if} /> 是</label>
<label for="isshowsearch"><input name="row[isshowsearch]" type="radio" value="0" {if $row.isshowsearch eq '0'}checked="checked"{/if} /> 否</label>
</div>
</div>
</div>
<div class="form-group">
<label for="c-isoption" class="control-label col-xs-12 col-sm-2">是否选项:</label>
<div class="col-xs-12 col-sm-8">
<div class="radio" >
<label for="isoption"><input name="row[isoption]" type="radio" value="1" {if $row.isoption eq '1'}checked="checked"{/if} /> 是</label>
<label for="isoption"><input name="row[isoption]" type="radio" value="0" {if $row.isoption eq '0'}checked="checked"{/if} /> 否</label>
</div>
</div>
</div>
<!--
<div class="form-group">
<label for="c-isimport" class="control-label col-xs-12 col-sm-2">是否是导入字段:</label>
<div class="col-xs-12 col-sm-8">
<div class="radio" for="isimport" >
<label for="isimport"><input name="row[isimport]" type="radio" value="1" {if $row.isimport eq '1'}checked="checked"{/if} /> 是</label>
<label for="isimport"><input name="row[isimport]" type="radio" value="0" {if $row.isimport eq '0'}checked="checked"{/if}/> 否</label>
</div>
</div>
</div>
-->
<div class="form-group">
<label for="c-options" class="control-label col-xs-12 col-sm-2">选项:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-options" data-rule="" class="form-control" name="row[options]" type="text" value="{$row.options}" />
</div>
</div>
<div class="form-group">
<label for="c-optionform" class="control-label col-xs-12 col-sm-2">选项的表现形式:</label>
<div class="col-xs-12 col-sm-8">
<select id="c-optionform" data-rule="" name="row[optionform]"  class="form-control selectpicker">
    <option value="0">请选择</option>
    <option value="select" {if $row.optionform eq 'select'}selected="selected"{/if}>Bootstrap的select形式</option>
    <option value="radio" {if $row.optionform eq 'radio'}selected="selected"{/if}>单选</option>
    <option value="checkbox" {if $row.optionform eq 'checkbox'}selected="selected"{/if}>多选</option>
    <option value="select3" {if $row.optionform eq 'select3'}selected="selected"{/if}>类别无限极选择</option>
    <option value="image" {if $row.optionform eq 'image'}selected="selected"{/if}>选择图片</option>
    <option value="file" {if $row.optionform eq 'file'}selected="selected"{/if}>选择文件</option>
    <option value="datetime" {if $row.optionform eq 'datetime'}selected="selected"{/if}>日期选择</option>
    <option value="upyun"  {if $row.optionform eq 'upyun'}selected="selected"{/if}>又拍云</option>
</select>
</div>
</div>
<div class="form-group">
<label for="c-optionurl" class="control-label col-xs-12 col-sm-2">获取选项的URL:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-optionurl" data-rule="" class="form-control" name="row[optionurl]" type="text" value="{$row.optionurl}" />
</div>
</div>
<div class="form-group">
    <label for="c-default" class="control-label col-xs-12 col-sm-2">默认值:</label>
    <div class="col-xs-12 col-sm-8">
        <input id="c-default" data-rule="" class="form-control" name="row[default]" type="text" value="{$row.default}" />
    </div>
</div>
<div class="form-group">
<label for="c-listorder" class="control-label col-xs-12 col-sm-2">顺序:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-listorder" data-rule="" class="form-control" name="row[listorder]" type="text" value="{$row.listorder}" />
</div>
</div>
<div class="form-group">
<label for="c-intro" class="control-label col-xs-12 col-sm-2">简介:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-intro" data-rule="" class="form-control" name="row[intro]" type="text" value="{$row.intro}" />
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2"></label>
<div class="col-xs-12 col-sm-8">
<button type="submit" class="btn btn-success btn-embossed">确定</button>
<button type="reset" class="btn btn-default btn-embossed">重置</button>
<button type="button" class="btn btn-default returnback">返回</button>
</div>
</div>
</form>
